<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

<!-- https://blog.csdn.net/qq_18594435/article/details/126036129 -->


  <style>
    .ttt {
      width: 300px;
      height: 600px;
      background-color: rgb(159, 177, 152);
      padding: 5px;
      overflow: scroll;
    }

    .tstst {
      width: 100%;
      transform: rotate(180deg);
    }

    .ccccc {
      width: 100%;
      background-color: rgb(138, 141, 137);
      margin-top: 4px;
      transform: rotate(180deg);
    }
  </style>
  <div class="ttt" id="ttt">
    <div class="tstst" id="tstst">
      <div class="ccccc">1</div>
      <div class="ccccc">2</div>
    </div>
  </div>
  <script>
    var n= 3
    var c = document.createElement('div')
    c.classList.add('ccccc')

    var d = document.getElementById('tstst');
    setInterval(() => {
      cc = c.cloneNode(true)
      cc.innerHTML = n++;
      d.appendChild(cc);
    }, 100);

  </script>
</body>

</html>